package com.bestcem.xm.award.service;

import com.bestcem.xm.award.controller.param.point.CheckSmsCodeParam;
import com.bestcem.xm.award.controller.param.point.SendSmsCodeParam;
import com.bestcem.xm.common.core.domain.web.ServiceResult;

/**
 * @author xa.zhang <xa.zhang@idiaoyan.com>
 * @version v1.0
 * @date 2021/7/16 14:57
 * @desc 奖励通用发送短信验证码
 */
public interface AwardSmsService {

    /**
     * 获取验证码
     * @param param 参数
     * @return 结果
     */
    ServiceResult getSmsAuthCode(SendSmsCodeParam param);

    /**
     * 校验验证码
     * @param param 参数
     * @return 结果
     */
    ServiceResult verifySmsAuthCode(CheckSmsCodeParam param);

    /**
     * 检查参数是否合理完整
     * @param awardId 奖励id
     * @param requestId 请求id
     * @return 结果
     */
    ServiceResult checkParamRight(String awardId, String requestId);

}
